Skip to content
  • 0 Votes
    6 Posts
    109 Views
    W
    @Puneit-Thukral Could you post your full working sketch please? I'm revisiting some of my 51822 nodes that have sat collecting dust for a long time and thought i might try to get them working again.
  • 0 Votes
    4 Posts
    4k Views
    V
    I built a trip wire for the post box that I'm connecting. It's however based on a mercury tilt sensor so I'm really not sure whether I think it's a great idea putting it to use (at least not with a sturdy case...). However, I can share my code: #define DIGITAL_INPUT_SENSOR 2 // The digital input you attached your motion sensor. (Only 2 and 3 generates interrupt!) #define INTERRUPT DIGITAL_INPUT_SENSOR-2 // Usually the interrupt = pin -2 (on uno/nano anyway) MyMessage msgTripped(CHILD_ID_TRIPPED, V_TRIPPED); void setup() { gw.sendSketchInfo("Postal", "1.0"); gw.present(CHILD_ID_TRIPPED, S_MOTION); pinMode(DIGITAL_INPUT_SENSOR, INPUT); // sets the motion sensor digital pin as input } void loop() { boolean tripped = digitalRead(DIGITAL_INPUT_SENSOR) == LOW; if(tripped) { gw.send(msgTripped.set("1")); // Send tripped value to gw } gw.sleep(INTERRUPT,FALLING, SLEEP_TIME); }
  • 0 Votes
    28 Posts
    21k Views
    Paul AugustoP
    2 part video showing how to tie the TP4056 and MAX17043 boards together and to an arduino pro mini. Part 1: https://www.youtube.com/watch?v=3yHRrPDczK4 Part 2: https://www.youtube.com/watch?v=ZtkIDwkrc6E
  • multiple door sensors, one arduino

    My Project multiple door door sensors
    4
    0 Votes
    4 Posts
    4k Views
    E
    The sketch is working!

21

Online

11.7k

Users

11.2k

Topics

113.0k

Posts